<?php

App::uses('Controller', 'Controller');
App::uses('CakeEmail', 'Network/Email');

class AppController extends Controller {
    var $components = array('Session');
    
    function beforeFilter()
    {
        
        $phoreApp['url'] = Configure::read('app_domain');
        $this->set('phoreApp', $phoreApp);
        
        
//        $this->Auth->deny('*');
//        $usuario_info = $this->Session->read('Auth');
    }
    
    function dataPortugues($data)
    {
        $data = implode("-", array_reverse(explode("-", substr($data, 0, 10)))).substr($data, 10);
        return $data;
    }

}
